package com.leigq.www.server.properties;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;

/**
 * 老师配置
 *
 * @author leiguoqing
 * @date 2022年10月16日 13:52:33
 */
@Data
@Component
public class TeacherProperties implements Serializable {

    /**
     * The constant serialVersionUID.
     */
    private static final long serialVersionUID = -2055944460522992249L;

    /**
     * The Name.
     */
    @NacosValue(value = "${teacher.name}", autoRefreshed = true)
    private String name;


    /**
     * The Age.
     */
    @NacosValue(value = "${teacher.age}", autoRefreshed = true)
    private Integer age;

    /**
     * The Arr str list.
     */
    @NacosValue(value = "${teacher.listStr2}", autoRefreshed = true)
    private List<String> listStr;

    /**
     * The Arr str array.
     */
    @NacosValue(value = "${teacher.arrStr}", autoRefreshed = true)
    private String[] arrStr;
}
